private boolean isLocalId(String localId){
  if (!localId.startsWith("local_")) {
    return false;
  }
  for (int i=6; i < localId.length(); ++i) {
    char c=localId.charAt(i);
    if (!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f')) {
      return false;
    }
  }
  return true;
}

private boolean isLocalId ( String localId ) { if ( ! localId . startsWith ( "local_" ) ) { return false ; } for ( int i = 6 ; i < localId . length ( ) ; ++ i ) { char c = localId . charAt ( i ) ; if ( ! ( c >= '0' && c <= '9' ) && ! ( c >= 'a' && c <= 'f' ) ) { return false ; } } return true ; }
returns true if localid has the right basic format for a local id .
