if (a instanceof ShardKey) {
storedProcedure.addShardKeyParameter(pos, clazz);
}
if (a instanceof SProcParam) {
final SProcParam sParam = (SProcParam) a;
final String dbTypeName = sParam.type();
try {
storedProcedure.addParam(StoredProcedureParameter.createParameter(clazz, genericType,
method, dbTypeName, sParam.sqlType(), pos, sParam.sensitive()));
} catch (final InstantiationException | IllegalAccessException e) {
LOG.error("Could not instantiate StoredProcedureParameter. ABORTING.", e);
return null;
}
}