isWritable(lockable);
}
public static void isWritable(Lockable lockable) throws HiveLockableException {
if(lockable.getStatus() != Lockable.Status.writable)
throw new HiveLockableException(
String.format("This operation is invalid because the %s is currently set to status %s.", lockable.getClass().getSimpleName(), lockable.getStatus()));
}