The simplest way is the following :
Note : enterprise[1, 2] is depending on the version of netbeans
|Put custom documents and applications there.|
|Edit the two property files for the new projects.|
|Edit the two config xml files.|
|Replace the original jar with the new jar.|
Not tested yet by my own.
Should be useful.