for (Map.Entry<Integer, ConstructorArgPair> entry : this.constructorArgs.entrySet()) {
int position = entry.getKey();
Object value = entry.getValue().getValue();
Class type = entry.getValue().getType();
if (position < 0 || position > argsNr - 1) {
throw new IllegalArgumentPositionException("Illegal position: " + position);
} else {
argsArray[position] = value;
typesArray[position] = type;
}
}