Checking for builderClass or Builder class in invoke method.