try {
XRegistryKey newKey = regKey.createKey("/" + implName + "/UNO/SERVICES");
String names[] = getServiceNames();
for (int i=0; i<names.length; i++)
newKey.createKey( names[i] );
success = true;
}
catch (com.sun.star.registry.InvalidRegistryException e) {
throw new CannotRegisterImplementationException("Can not register " + implName + " because " + e.toString() );