NetBeans comes with a clipboard history built-in. The key combination
shift+command+d (Mac) opens an inline dialog and allows you to pick a previously copied element. You can copy multiple elements and choose one from the stack later.
This approach speeds up considerably the efficient copy-paste based reuse :-).
See you at Java EE Workshops at MUC Airport!
NEW workshop: Building HTML 5 Applications With React.js
On demand workshops: Java EE 7 Bootstrap, Effective Java EE 7, Java EE 7 Testing and NEW: Java EE 7 Microservices are available for streaming