} else if (dSource instanceof JDBCDataSourceEntry && getType().equals(JNDI_TYPE)) {
setJdbcStatusError();
} else if (dSource instanceof JNDIDataSourceEntry && getType().equals(JNDI_TYPE)) {
JNDIDataSourceEntry jndiDS = (JNDIDataSourceEntry) dSource;
fillValues(jndiDS);
jndiDS.save();
} else if (dSource instanceof JDBCDataSourceEntry && getType().equals(CUSTOM_TYPE)) {
JDBCDataSourceEntry polyDS = (JDBCDataSourceEntry) dSource;
fillValues(polyDS);
if(polyDS.getPassword()==null ||
(passwordChanged!=null && "true".equals(passwordChanged))||