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: Online Workhop Effective WebApps without Frameworks is also coming to: MUC Airport.