Java tutorial
//package com.java2s; import java.io.InputStream; public class Main { public static InputStream getClassPathConfigPath() { return Thread.currentThread().getClass().getResourceAsStream("/container-config.xml"); } }