LOGGER.error("Cannot sign up a user that has already signed up.");
throw new IllegalArgumentException(
"Cannot sign up a user that has already signed up.");
}
ParsePostCommand command = new ParsePostCommand(getClassName());
JSONObject parseData = getParseData();
parseData.put("password", password);
command.setData(parseData);
ParseResponse response = command.perform();
if(!response.isFailed()) {
JSONObject jsonResponse = response.getJsonObject();
if (jsonResponse == null) {
LOGGER.error("Empty response");
throw response.getException();