naive bean parser, while implementing domain  factory