if (length > 1 && alias.charAt(length - 1) == '/')
throw new IllegalArgumentException(
"The alias parameter must not end with slash: " + alias);
if (registrations.get(alias) != null)
throw new NamespaceException("The alias is already in use: "
+ alias);
bundleRegistrations.addElement(alias);
registrations.put(alias, registration);