I have two POJO-classes with almost same fields, e.g.:
public class B { private String string1; private String string2; // getters, setters, equals, toString } p