java format library using reflection