* IllegalStateException if EndpointInternals instance has not been set.
*/
public static EndpointInternals get() {
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
sm.checkPermission(new EndpointInternalsPermission(
EndpointInternalsPermission.GET));
}
synchronized (lock) {
if (endpointInternals == null) {
throw new IllegalStateException("endpointInternals not set");