I was wondering if it would be possible to refactor plantuml into a core module + a set of sub-modules (one per diagrams), so that when embedding plantuml into another tool (e.g. using Maven), we could only include the code for the diagrams we need (in my case components and statecharts only) and reduce a bit the size of the final executable jar.