final JavaType domainType, final JavaType idType) {
final Map<MethodMetadataCustomDataKey, Collection<MethodParameter>> signatures = new LinkedHashMap<MethodMetadataCustomDataKey, Collection<MethodParameter>>();
final List<MethodParameter> noArgs = Arrays.asList();
signatures.put(COUNT_ALL_METHOD, noArgs);
signatures.put(FIND_ALL_METHOD, noArgs);
signatures.put(FIND_ENTRIES_METHOD, Arrays.asList(new MethodParameter(
INT_PRIMITIVE, "firstResult"), new MethodParameter(
INT_PRIMITIVE, "maxResults")));
signatures.put(FIND_METHOD,
Arrays.asList(new MethodParameter(idType, "id")));
final List<MethodParameter> proxyParameterAsList = Arrays
.asList(new MethodParameter(domainType, "proxy"));
signatures.put(PERSIST_METHOD, proxyParameterAsList);
signatures.put(REMOVE_METHOD, proxyParameterAsList);
return signatures;
}