question: public static byte [ ] select ( String aid ) { byte aidLength = ( byte ) ( aid . length ( ) / 2 ) ; String selectApdu = SELECT_HEADER + encodeHex ( aidLength ) + aid ; return decodeHex ( selectApdu ) ; }
target:  Builds the SELECT command APDU from a cardlet's AID: - builds a SELECT command concatenating the header, AID lenght and AID