public Attribute createAttribute(String name,String value){
  AttributeField attributeImpl=new AttributeField();
  try {
    attributeImpl.setName(name);
    attributeImpl.setValueAllowNull(value);
  }
 catch (  SdpException s) {
    s.printStackTrace();
  }
  return attributeImpl;
}

public Attribute createAttribute ( String name , String value ) { AttributeField attributeImpl = new AttributeField ( ) ; try { attributeImpl . setName ( name ) ; attributeImpl . setValueAllowNull ( value ) ; } catch ( SdpException s ) { s . printStackTrace ( ) ; } return attributeImpl ; }
returns attribute object with the specified values .
