implementing common layer for xml/annotation based deployment