public PolicyMap resolve(ServerContext context) throws WebServiceException {
final Class endpointClass = context.getEndpointClass();
final String configId = endpointClass == null ? null : endpointClass.getName();
if (!context.hasWsdl()) {
// Parse WSIT config file.
PolicyMap map = null;
try {
Collection<PolicyMapMutator> mutators = context.getMutators();
// No need to check if configId != null because it never is if we have WSDL
map = PolicyConfigParser.parse(configId, context.getContainer(),
mutators.toArray(new PolicyMapMutator[mutators.size()]));