Sbt app fixes

2 fixes related to XPages use of the SDK.