CommandContextUtil.getContentService returns null

CommandContextUtil.getContentService() returns null in a command called from CommandExecutor.
What can be the reason (flowable 7)?
Maybe I must modify some configurations for that?

Thank You!