Creating new component for returning the run mode of cq instancse (author or publish)