return getWebAppsPath("webapps");
}
private static String getWebAppsPath(final String path) throws IOException {
URL url = InfoServer.class.getClassLoader().getResource(path);
if (url == null)
<BUG>throw new IOException("webapps not found in CLASSPATH");
</BUG>
return url.toString();
}
public int getPort() {

return getWebAppsPath("webapps");
}
private static String getWebAppsPath(final String path) throws IOException {
URL url = InfoServer.class.getClassLoader().getResource(path);
if (url == null)
throw new IOException("webapps not found in CLASSPATH: " + path);
return url.toString();
}
public int getPort() {
