Object obj = null;
if( feature.equals( FEATURE_BLACKBERRY_IO_FILE ) ) {
obj = new FileNamespace();
} else if( feature.equals( FEATURE_BLACKBERRY_IO_DIR ) ) {
obj = new DirNamespace();
}
if( obj != null ) {
scriptEngine.addExtension( feature, obj );
}