Added parameter to Q.getObject to handle common use case