Changed registerNamespaces to registerPrefixes to autoload nested classes