*/
public Map<Object, Parameter<?>> getDeclaredParameters() {
if (_declaredParams == null) {
_declaredParams = new HashMap<Object, Parameter<?>>();
LinkedMap paramTypes = _query.getParameterTypes();
for (Object key : paramTypes.keySet()) {
Parameter<?> param = null;
Class<?> expectedValueType = (Class<?>)paramTypes.get(key);
if (key instanceof Integer) {
param = new ParameterImpl((Integer)key, expectedValueType);
} else if (key instanceof String) {