String url = System.getProperty("oracle.url");
if (url == null)
throw new IllegalStateException("oracle.url system property not set");
Matcher matcher = p.matcher(url);
if (!matcher.matches())
throw new IllegalStateException("Cannot match " + p.pattern() + " against " + url);
configuration.getSimple("host").setStringValue(matcher.group(1));
configuration.getSimple("port").setIntegerValue(Integer.parseInt(matcher.group(2)));
configuration.getSimple("sid").setStringValue(matcher.group(3));
username = System.getProperty("oracle.username");
String password = System.getProperty("oracle.password");