public boolean matches(String storageSystemNativeGuid){
  String vplexStorageSystemId=getUniqueId();
  s_logger.info(String.format("Matching the storageSystemNativeGuid %s with %s",storageSystemNativeGuid,vplexStorageSystemId));
  if (storageSystemNativeGuid.contains(vplexStorageSystemId.trim())) {
    return true;
  }
  if (storageSystemNativeGuid.startsWith("IBMXIV+IBM")) {
    int decimalNum=0;
    try {
      decimalNum=Integer.parseInt(vplexStorageSystemId);
    }
 catch (    NumberFormatException nfe) {
      return false;
    }
    String hexString=Integer.toHexString(decimalNum);
    String subHexString=hexString.substring(1,hexString.length());
    String decimalString=Integer.toString(Integer.parseInt(subHexString,16));
    if (storageSystemNativeGuid.endsWith(decimalString)) {
      return true;
    }
  }
  return false;
}

public boolean matches ( String storageSystemNativeGuid ) { String vplexStorageSystemId = getUniqueId ( ) ; s_logger . info ( String . format ( "Matching the storageSystemNativeGuid %s with %s" , storageSystemNativeGuid , vplexStorageSystemId ) ) ; if ( storageSystemNativeGuid . contains ( vplexStorageSystemId . trim ( ) ) ) { return true ; } if ( storageSystemNativeGuid . startsWith ( "IBMXIV+IBM" ) ) { int decimalNum = 0 ; try { decimalNum = Integer . parseInt ( vplexStorageSystemId ) ; } catch ( NumberFormatException nfe ) { return false ; } String hexString = Integer . toHexString ( decimalNum ) ; String subHexString = hexString . substring ( 1 , hexString . length ( ) ) ; String decimalString = Integer . toString ( Integer . parseInt ( subHexString , 16 ) ) ; if ( storageSystemNativeGuid . endsWith ( decimalString ) ) { return true ; } } return false ; }
check if the storagesystemnativeguid matches with vplex storage systems unique id .
