public static void assertArrayName(String arrayName) throws XMPException {
  if (arrayName == null || arrayName.length() == 0) {
    throw new XMPException("Empty array name",XMPError.BADPARAM);
  }
}

public static void assertArrayName ( String arrayName ) throws XMPException { if ( arrayName == null || arrayName . length ( ) == 0 ) { throw new XMPException ( "Empty array name" , XMPError . BADPARAM ) ; } }
asserts that an array name is set .
