public void registerLocation(AbstractClassPathLocation location) {
if (!this.initializedProperly) return;
try {
final ClassRealm newRealm = this.classWorld.newRealm(location.getRealm(), getClass().getClassLoader());
newRealm.addConstituent(location.getLocation().toURL());
} catch (DuplicateRealmException e) {
// Happens for #classpath realms ...
} catch (MalformedURLException e) {
e.printStackTrace();
}