final ODatabaseRecordInternal db = getDatabase();
final OStorage storage = db.getStorage();
if (isDistributedCommand()) {
final OAutoshardedStorage autoshardedStorage = (OAutoshardedStorage) storage;
OCommandSQL commandSQL = new OCommandSQL(cmd.toString());
commandSQL.addExcludedNode(autoshardedStorage.getNodeId());
db.command(commandSQL).execute();
createClassInternal(className, superClass, clusterIds);
} else if (storage instanceof OStorageProxy) {