return trash.moveToTrash(path);
}
@Override
public short getDefaultReplication(Path path) {
Volume v = getVolumeByPath(path);
FileSystem fs = v.getFileSystem();
try {
// try calling hadoop 2 method
Method method = fs.getClass().getMethod("getDefaultReplication", Path.class);
return ((Short) method.invoke(fs, path)).shortValue();
} catch (NoSuchMethodException e) {