synchronized String createLocalId(){
  long localIdNumber=random.nextLong();
  String localId="local_" + Long.toHexString(localIdNumber);
  if (!isLocalId(localId)) {
    throw new IllegalStateException("Generated an invalid local id: \"" + localId + "\". "+ "This should never happen. Contact us at https://parse.com/help");
  }
  return localId;
}

synchronized String createLocalId ( ) { long localIdNumber = random . nextLong ( ) ; String localId = "local_" + Long . toHexString ( localIdNumber ) ; if ( ! isLocalId ( localId ) ) { throw new IllegalStateException ( "Generated an invalid local id: \"" + localId + "\". " + "This should never happen. Contact us at https://parse.com/help" ) ; } return localId ; }
creates a new local id .
