[CXF-5479] Avoiding instantiating the classes