@Override
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adaptableObject instanceof HDFSFileStore) {
HDFSFileStore fs = (HDFSFileStore) adaptableObject;
if (adapterType == IPropertySource.class)
return new HDFSFileStorePropertySource(fs);
} else if (adaptableObject instanceof ZNode) {
ZNode z = (ZNode) adaptableObject;
return new ZNodePropertySource(z);
}
return null;