public function convertNamespaceToPath($namespace)
{
// remove the app namespace from the namespace if it is there
$appNamespace = $this->getAppNamespace();
if (substr($namespace, 0, strlen($appNamespace)) == $appNamespace) {
$namespace = substr($namespace, strlen($appNamespace));
}
// trim and return the path
return str_replace('\\', '/', trim($namespace, ' \\'));
}