// cached FaceBook instance, is created in getFacebook by endpoint producers and consumers
private Facebook facebook;
public Configuration getConfiguration() {
final ConfigurationBuilder builder = new ConfigurationBuilder();
// apply builder settings
if (oAuthAccessToken != null) {
builder.setOAuthAccessToken(oAuthAccessToken);
}
if (oAuthAccessTokenURL != null) {
builder.setOAuthAccessTokenURL(oAuthAccessTokenURL);
}
if (oAuthAppId != null) {
builder.setOAuthAppId(oAuthAppId);
}
if (oAuthAppSecret != null) {
builder.setOAuthAppSecret(oAuthAppSecret);
}
if (oAuthAuthorizationURL != null) {
builder.setOAuthAuthorizationURL(oAuthAuthorizationURL);
}
if (oAuthPermissions != null) {
builder.setOAuthPermissions(oAuthPermissions);
}
if (clientURL != null) {
builder.setClientURL(clientURL);
}
if (clientVersion != null) {
builder.setClientVersion(clientVersion);
}
if (debugEnabled != null) {
builder.setDebugEnabled(debugEnabled);
}
if (gzipEnabled != null) {
builder.setGZIPEnabled(gzipEnabled);
}
if (httpConnectionTimeout != null) {
builder.setHttpConnectionTimeout(httpConnectionTimeout);
}
if (httpDefaultMaxPerRoute != null) {
builder.setHttpDefaultMaxPerRoute(httpDefaultMaxPerRoute);
}
if (httpMaxTotalConnections != null) {
builder.setHttpMaxTotalConnections(httpMaxTotalConnections);
}
if (httpProxyHost != null) {
builder.setHttpProxyHost(httpProxyHost);
}
if (httpProxyPassword != null) {
builder.setHttpProxyPassword(httpProxyPassword);
}
if (httpProxyPort != null) {
builder.setHttpProxyPort(httpProxyPort);
}
if (httpProxyUser != null) {
builder.setHttpProxyUser(httpProxyUser);
}
if (httpReadTimeout != null) {
builder.setHttpReadTimeout(httpReadTimeout);
}
if (httpRetryCount != null) {
builder.setHttpRetryCount(httpRetryCount);
}
if (httpRetryIntervalSeconds != null) {
builder.setHttpRetryIntervalSeconds(httpRetryIntervalSeconds);
}
if (httpStreamingReadTimeout != null) {
builder.setHttpStreamingReadTimeout(httpStreamingReadTimeout);
}
if (jsonStoreEnabled != null) {
builder.setJSONStoreEnabled(jsonStoreEnabled);
}
if (mbeanEnabled != null) {
builder.setMBeanEnabled(mbeanEnabled);
}
if (prettyDebugEnabled != null) {
builder.setPrettyDebugEnabled(prettyDebugEnabled);
}
if (restBaseURL != null) {
builder.setRestBaseURL(restBaseURL);
}
if (useSSL != null) {
builder.setUseSSL(useSSL);
}
if (videoBaseURL != null) {
builder.setVideoBaseURL(videoBaseURL);
}
return builder.build();
}