ldap/src/main/java/org/springframework/security/ldap/ppolicy/PasswordPolicyControlFactory.java
public Control getControlInstance(Control ctl) {
		if (ctl.getID().equals(PasswordPolicyControl.OID)) {
			return new PasswordPolicyResponseControl(ctl.getEncodedValue());
		}

		return null;
	}
public Control getControlInstance(Control ctl) {
		if (ctl.getID().equals(PasswordPolicyControl.OID)) {
			return new PasswordPolicyResponseControl(ctl.getEncodedValue());
		}

		return null;
	}
Creates an instance of PasswordPolicyResponseControl if the passed control is a
response control of this type. Attributes of the result are filled with the correct
values (e.g. error code).

@param ctl the control the check

@return a response control of type PasswordPolicyResponseControl, or null