@classmethod
def CreateWithQuantity(cls, quantity, *args, **kwargs):
    """
        This is a secondary interface for creating the object with an existing quantity.

        :param Quantity quantity:
            The quantity for this object

        @param args and kwargs: Those are dependent on the actual class -- this parameters
            are passed directly to _InternalCreateWithQuantity.
        """
    stub = cls.__Stub()
    stub.__class__ = cls
    stub._InternalCreateWithQuantity(quantity, *args, **kwargs)
    return stub
