if (potentialContstructorPrimitive == null && potentialContstructorWrapped == null) {
// Check if we can find a matching var args constructor.
constructor = getPotentialVarArgsConstructor(classThatContainsTheConstructorToTest, arguments);
if (constructor == null) {
throw new ConstructorNotFoundException("Failed to find a constructor with argument types: ["
+ getArgumentsAsString(arguments) + "]");
}
} else if (potentialContstructorPrimitive == null && potentialContstructorWrapped != null) {
constructor = potentialContstructorWrapped;
} else if (potentialContstructorPrimitive != null && potentialContstructorWrapped == null) {