public boolean matchesId(String checkId){
  if (checkId == null) {
    return false;
  }
 else   if (uuid.isPresent() && checkId.equals(uuid.get())) {
    return true;
  }
  String id=getId();
  return !id.equals("0") && checkId.equals(id);
}

public boolean matchesId ( String checkId ) { if ( checkId == null ) { return false ; } else if ( uuid . isPresent ( ) && checkId . equals ( uuid . get ( ) ) ) { return true ; } String id = getId ( ) ; return ! id . equals ( "0" ) && checkId . equals ( id ) ; }
check whether an id matches for this persistent resource .
