private static DataBuffer getDataBuffer( final ServiceRecord record, final int type ) {
final byte[] data = record.getApplicationData();
if( data != null ) {
final DataBuffer buffer = new DataBuffer( data, 0, data.length, true );
try {
buffer.readByte();
} catch( final EOFException e1 ) {
return null;
}
if( ConverterUtilities.findType( buffer, type ) ) {
return buffer;