Attribute useSSL=Attributes.create(ATTR_USE_SSL, String.valueOf(false));
Attribute startTls=Attributes.create(ATTR_ALLOW_STARTTLS, String.valueOf(false));
AttributeType attrType=DirectoryServer.getAttributeType(ATTR_LISTEN_PORT, true);
Attribute a=Attributes.empty(attrType);
LDAPHandlerEntry.removeAttribute(a, null);
LDAPHandlerEntry.removeAttribute(useSSL, null);
LDAPHandlerEntry.removeAttribute(startTls, null);
Attribute useSSL1=Attributes.create(ATTR_USE_SSL, String.valueOf(true));
Attribute startTls1=Attributes.create(ATTR_ALLOW_STARTTLS, String.valueOf(false));
LDAPHandlerEntry.addAttribute(useSSL1,null);
LDAPHandlerEntry.addAttribute(startTls1,null);