is this is the java workaround to avoid duplicating all the constructors?