This method should be public as used in batch process which cannot have session