@Override
public boolean authenticate(String user, String password) {
String authUrl = null;
String apiKey = null;
try {
CacheManager cache = CacheManagerFactory.getCacheManager();
if(cache.getCachedData(CacheManager.MAP_READITLATER_CONFIG, "authUrl") != null)
{
authUrl = (String)cache.getCachedData(CacheManager.MAP_READITLATER_CONFIG, "authUrl");
apiKey = (String)cache.getCachedData(CacheManager.MAP_READITLATER_CONFIG, "apiKey");
log.info("cache hit authUrl="+authUrl);
}else
{
//read it from config directly
authUrl = ReadItLaterConfigLoader.getInstance().getValue("authUrl");