}
private WGUserProfile createUserProfile(String userAgent, WGDatabase persDB, String wgpid, int persMode) throws WGAPIException {
WGUserProfile userProfile;
UserAgentVerifier userAgentVerifier = getCore().getUserAgentVerifier();
if (userAgentVerifier.isValidUserAgent(userAgent) == true) {
userProfile = persDB.createUserProfile(wgpid, persMode);
}
else {
userProfile = persDB.getDummyProfile(wgpid);
}