if (protocolParameterList.hasMoreElements()) {
DataElement protocolDescriptor = (DataElement)protocolParameterList.nextElement();
if (protocolDescriptor != null) {
if (protocolDescriptor.getDataType() == DataElement.UUID) {
UUID protocolDescriptorUUID = (UUID)protocolDescriptor.getValue();
if (protocolDescriptorUUID.toLong() == 0x0100) //is L2CAP
{
if (protocolParameterList.hasMoreElements()) {
DataElement protocolPSMElement = (DataElement)protocolParameterList.nextElement();
{
if (protocolPSMElement != null) {