Refactor in OpennnasBeanUtils and some bugs resolved.