I would insert after here precondition checks for the parameters passed in.  For example, if they are null, throw IllegalArgumentException.