code: public Authentication getAuthenticationMethod(int methodId) {
  		Object method = authMethods.get(new Integer(methodId));
  		if (method == null)
  			return null;
  		return (Authentication) method;
  	}
docs: Get authentication method, which corresponds to given method id
  
  @param methodId
  Authentication method id.
  @return Implementation for given method or null, if one was not set.